New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@unified-latex/unified-latex-util-argspec

Package Overview
Dependencies
Maintainers
0
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unified-latex/unified-latex-util-argspec

Tools parsing a LaTeX argument specification in the xparse format

  • 1.8.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.4K
decreased by-16.3%
Maintainers
0
Weekly downloads
 
Created
Source

unified-latex-util-argspec

What is this?

Tools to deal with xparse argument signatures. (E.g., "o m" for optional followed by mandatory argument).

When should I use this?

If you are working on the internals of unified-latex.

Install

npm install @unified-latex/unified-latex-util-argspec

This package contains both esm and commonjs exports. To explicitly access the esm export, import the .js file. To explicitly access the commonjs export, import the .cjs file.

Functions

parse(str)

Parse an xparse argument specification string to an AST. This function caches results. Don't mutate the returned AST!

function parse(str: String): ArgSpec.Node[];

Parameters

ParamTypeDescription
strString* LaTeX string input

printRaw(node, root)

Print an xparse argument specification AST to a string.

function printRaw(
  node: string | ArgSpec.Node | (string | ArgSpec.Node)[],
  root: Boolean
): string;

Parameters

ParamType
nodeOmitted
rootBoolean

Keywords

FAQs

Package last updated on 21 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc